//
//  DHProvince.m
//  DHKuaiYi
//
//  Created by xiaohuihui on 2016/11/16.
//  Copyright © 2016年 30-陈辉华. All rights reserved.
//

#import "DHProvince.h"

@implementation DHProvince

- (instancetype)initWithDict:(NSDictionary *)dict {
    
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (NSMutableArray *)provincesList {
    
    NSString *path = [[NSBundle mainBundle]pathForResource:@"02cities" ofType:@"plist"];
    NSArray *arr = [NSArray arrayWithContentsOfFile:path];
    NSMutableArray *mtArr = [NSMutableArray new];
    
    for (NSDictionary *dict in arr) {
        DHProvince *temp = [[self alloc] initWithDict:dict];
        [mtArr addObject:temp];
    }
    return mtArr;
}

+ (NSArray *)numbersList {
    
    NSString *path = [[NSBundle mainBundle] pathForResource:@"pickerDatePlist" ofType:@"plist"];
    NSArray *numbers = [NSArray arrayWithContentsOfFile:path];
    return numbers;
}

@end
